package com.sdp.wx.db.wx_warehouse_info.service.impl;

import com.sdp.wx.db.wx_warehouse_info.entity.WxWarehouseInfo;
import com.sdp.wx.db.wx_warehouse_info.mapper.WxWarehouseInfoMapper;
import com.sdp.wx.db.wx_warehouse_info.service.IWxWarehouseInfoService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsp
 * @since 2024-01-20
 */
@Service
public class WxWarehouseInfoServiceImpl extends ServiceImpl<WxWarehouseInfoMapper, WxWarehouseInfo> implements IWxWarehouseInfoService {

	@Override
	public WxWarehouseInfo queryWxWarehouseInfoByCode(String warehouseCode) {
		LambdaQueryWrapper<WxWarehouseInfo> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(WxWarehouseInfo::getWarehouseCode, warehouseCode);
		return getOne(queryWrapper,false);
	}

}
